package com.fll.fangyishare.service.rpc;

import com.fll.fangyicommon.entity.user.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author fll
 * create 2023/4/2
 * openfeign实现远程调用声明的bean
 */
@FeignClient("fangyi-user")
public interface FangyiUserRpc {

    @GetMapping("/user/getUserInfoByRpc")
    User getUserInfoByUserId(@RequestParam Integer userId);

    @GetMapping("/user/getFriendByRpc")
    String getFriendByRpc(@RequestParam Integer userId);
}

